class CreateTaggedItems < ActiveRecord::Migration
  def self.up
    create_table :tagged_items, :id => false do |t|
      t.integer :taggable_id
      t.integer :tag_id
      t.string  :taggable_type
    end
    add_index :tagged_items, :tag_id, :unique => false
  end

  def self.down
    drop_table :tagged_items
  end
end
